<?php
class ChristmasShopVo extends SzAbstractMySqlVo
{

    private $userId;
    private $pos;
    private $buyTimes;
    private $createTime;
    private $updateTime;
    private $endTime;

    /**
     * Initialize ChristmasShopVo.
     *
     * @param $userId
     * @param $pos
     * @param $buyTimes
     * @param $createTime
     * @param $updateTime
     * @param $endTime
     * @param boolean $isInsert default false, means for now this vo is initialized not for insert process
     * @return ChristmasShopVo
     */
    public function __construct($userId, $pos, $buyTimes, $createTime, $updateTime, $endTime, $isInsert = false) {
        $this->userId = $userId;
        $this->pos = $pos;
        $this->buyTimes = $buyTimes;
        $this->createTime = $createTime;
        $this->updateTime = $updateTime;
        $this->endTime = $endTime;

        $this->isInsert = $isInsert;
        $this->voClassName = 'ChristmasShopVo';
        $this->ormName = 'ChristmasShop';
    }

    /**
     * @see SzAbstractVo::toArray
     */
    public function toArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'pos' => $this->getPos(),
            'buyTimes' => $this->getBuyTimes(),
            'createTime' => $this->getCreateTime(),
            'updateTime' => $this->getUpdateTime(),
            'endTime' => $this->getEndTime(),
        );
    }

    /**
     * @see SzAbstractVo::toEntireArray
     */
    public function toEntireArray($needEncode = false)
    {
        return array(
            'userId' => $this->getUserId(),
            'pos' => $this->getPos(),
            'buyTimes' => $this->getBuyTimes(),
            'createTime' => $this->getCreateTime(),
            'updateTime' => $this->getUpdateTime(),
            'endTime' => $this->getEndTime(),
        );
    }

    /**
     * @see SzAbstractVo::toPureArray
     */
    public function toPureArray()
    {
        return array(
            $this->getUserId(),
            $this->getPos(),
            $this->getBuyTimes(),
            $this->getCreateTime(),
            $this->getUpdateTime(),
            $this->getEndTime(),
        );
    }

    public function getUserId()
    {
        return $this->userId;
    }

    public function setUserId($val)
    {
        $this->saveColumnStatus(0, $this->userId);
        $this->userId = $val;
    }

    public function getPos()
    {
        return $this->pos;
    }

    public function setPos($val)
    {
        $this->saveColumnStatus(1, $this->pos);
        $this->pos = $val;
    }

    public function getBuyTimes()
    {
        return $this->buyTimes;
    }

    public function setBuyTimes($val)
    {
        $this->saveColumnStatus(2, $this->buyTimes);
        $this->buyTimes = $val;
    }

    public function getCreateTime()
    {
        return $this->createTime;
    }

    public function setCreateTime($val)
    {
        $this->saveColumnStatus(3, $this->createTime);
        $this->createTime = $val;
    }

    public function getUpdateTime()
    {
        return $this->updateTime;
    }

    public function setUpdateTime($val)
    {
        $this->saveColumnStatus(4, $this->updateTime);
        $this->updateTime = $val;
    }

    public function getEndTime()
    {
        return $this->endTime;
    }

    public function setEndTime($val)
    {
        $this->saveColumnStatus(5, $this->endTime);
        $this->endTime = $val;
    }

}